package com.butterfly.hotkey.client.core.collector;


import java.util.Collection;

/**
 * key收集器
 *
 * @author butterfly
 * @since 2024/10/29
 */
public interface IKeyCollector<K, V> {

    /**
     * 获取集合
     *
     * @return value
     */
    Collection<V> getCollection();

    /**
     * 收集key
     *
     * @param key key
     */
    void collect(K key);
}
